% ===============================
%
% Pacote LaTeX para Codio-Fonte
%
% ===============================
%
% Thiago Nunes Coelho Cardoso
% thiagon@dcc.ufmg.br
%
% Carolina Andrade Silva Bigonha
% carolb@dcc.ufmg.br
%
% ==============================

\NeedsTeXFormat{LaTeX2e}

\ProvidesPackage{dinossauro}

\RequirePackage{alltt}
\RequirePackage{color}
\RequirePackage{boxedminipage}

\definecolor{bg}{rgb}{0.97,0.97,0.97} 

%
% Environment de codigo margeado
%
 
\newenvironment{codigoMargem}
{
\begin{lrbox}{\@tempboxa}
\begin{boxedminipage}{.93\textwidth}
\begin{alltt}
}
{
\end{alltt}
\end{boxedminipage}
\end{lrbox}
\vspace{8pt}
\colorbox{bg}{\usebox{\@tempboxa}}
\vspace{8pt}
}

%
% Environment de codigo sem margem
%
\newenvironment{codigo}
{
\begin{lrbox}{\@tempboxa}
\begin{minipage}{.93\textwidth}
\begin{alltt}
}
{
\end{alltt}
\end{minipage}
\end{lrbox}
\vspace{8pt}
\colorbox{bg}{\usebox{\@tempboxa}}
\vspace{8pt}
}

